<% if @user.id == current_user.id %>
	<% title "My projects" %>
<% else %>
	<% title "#{@user.name}'s projects" %>
<% end %>

<h2>Projects</h2>

<% unless @projects.empty? %>
	<% for project in @projects %>
		<p><%= link_to(project.name, project_path(project.id, :subdomain => current_subdomain)) %></p>
	<% end %>
<% else %>
	<p class="empty_message">No projects</p>
<% end %>